package com.demo;
import com.methods.Taxi;
import com.methods.HomeCar;
import com.methods.Car;
/**
 *测试类
 *  2017/8/16
 *  @author Erik
 *  @version 0.1
 *  @since JDK1.8.
 *  @see com.methods.Car
 *  @see com.methods.HomeCar
 *  @see com.methods.Taxi
 */
public class Test {
    public static void main(String[] args){
        Car car=new Car();
        Car car1=new Car("黄","Erik");
        Car car2=new Car("黄","Erik");

        car.use();
        System.out.println("car1 和 car2 的引用比较："+car1.equals(car2));
        System.out.println("==================================");

        Taxi taxi=new Taxi("蓝","李明","长生公司");
        taxi.ride();
        taxi.use();
        System.out.println("taxi的信息："+ taxi.toString());
        System.out.println("==================================");

        HomeCar homeCar=new HomeCar("紫","孙二娘",7);
        homeCar.display();
        homeCar.display(5);

    }
}
